package com.homegoods.videomodule.item;

import android.view.View;

import com.homegoods.videomodule.R;
import com.homegoods.videomodule.model.AnchorCaseModel;
import com.kedll.library.adapter.MultiTypeAdapter;
import com.kedll.library.mvp.BaseItem;
import com.kedll.library.util.Parse;

/**
 * @author QiQi
 * @ClassName: AnchorCaseItem
 * @date 2018/10/30
 * @description
 */
public class AnchorCaseItem extends BaseItem<AnchorCaseModel> {
    public AnchorCaseItem(AnchorCaseModel data, MultiTypeAdapter adapter) {
        super(data);
        setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
    }

    public String getDate() {
        return getData().getDate();
    }

    public String getTitle() {
        return getData().getTitle();
    }

    public String getImgUrl() {
        return getData().getImgUrl();
    }

    public String getCount() {
        return Parse.getInstance().parse2CNString(getData().getCount(), 0, true).concat("播放量");
    }

    @Override
    public int getLayout() {
        return R.layout.video_item_anchor_case;
    }
}
